#include<stdio.h>


char* my_strncat(char* arr1, char* arr2, int k)
{
	char* ret = arr1;
	while (*arr1)
	{
		arr1++;
	}
	while (k--)
	{
		*arr1++ = *arr2++;
	}
	*arr1 = '\0';
	return ret;
}
int main()
{
	char arr1[100] = "abcdef";
	char arr2[] = "pool";
	char* ret = my_strncat(arr1, arr2, 2);
	printf("%s", ret);
	return 0;
}